//当前歌单信息，歌单列表，当前歌单状态
const sheetInfo = {
  state:{
    musicList:[],
    sheets:[],
    curSheet:{},
    show:false,
  },
  getters:{
    getMusicList:state => state.musicList,
    getAllSheets:state => state.sheets,
    getCurSheetShow:state => state.show,
    getSheetDetail:state => state.curSheet,
  },
  mutations:{
    setMusicList(state,list){
      state.musicList = list;
    },
    setSheets(state,obj){
      state.sheets = obj;
    },
    setSheetMusic(state,obj){
      state.curSheet = obj
    },
    setCurSheetShow(state,bool){
      state.show = bool;
    }
  },
  actions:{
    set_musicList({commit},list){
      commit('setMusicList',list);
    },
    set_Sheets({commit},obj){
      commit('setSheets',obj)
    },
    set_SheetMusic({commit},obj){
      commit('setSheetMusic',obj);
    },
    set_CurSheetShow({commit},bool){
      commit('setCurSheetShow',bool);
    }
  }
}
export default  sheetInfo
